package com.springboot.config;

/**
 * <h3>FileManage</h3>
 * <p>包含所有绝对路径 以便以后修改</p>
 *
 * @author : sugar without coffee
 * @date : 2020-04-11 12:38
 **/
public class PathConf {

    /**
     * 需要修改的内容，只需要修改秘钥，其他不需要修改
     * org1KeyFileName:变量值为文件名，文件位于"resources/file/fabric/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/keystore"目录下
     * org2KeyFileName:变量值为文件名，文件位于"resources/file/fabric/crypto-config/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/keystore"目录下
     * */
    public static final String org1KeyFileName ="3820468cdad37a8d504b3d5aa682f75c8dca685880d980eeacb4a9c37121c8b1_sk";
    public static final String org2KeyFileName ="846abcc5567ed1fbd0f53cc9917ad46410f0f57de6e66ebb9c22c58ea2cdab1b_sk";


    /**
    * Fabric公用路径
    * */
    public static final String DIR = "src/main/resources/file/fabric/crypto-config/";
    public static final String tlsOrderFilePath = DIR+"ordererOrganizations\\example.com\\tlsca\\tlsca.example.com-cert.pem";

    /**
     * 以下是所有从ubuntu copy下来的文件位置和文件名
     * 用于配置SdkInitOrg1
     * */
    public static final String org1KeyFolderPath = DIR+"peerOrganizations\\org1.example.com\\users\\Admin@org1.example.com\\msp\\keystore";
    public static final String org1CertFoldePath =DIR+"peerOrganizations\\org1.example.com\\users\\Admin@org1.example.com\\msp\\admincerts";
    public static final String org1CertFileName ="Admin@org1.example.com-cert.pem";
    public static final String org1TlsPeerFilePath = DIR+"peerOrganizations\\org1.example.com\\peers\\peer0.org1.example.com\\msp\\tlscacerts\\tlsca.org1.example.com-cert.pem";

    /**
     * 以下是所有从ubuntu copy下来的文件位置和文件名
     * 用于配置SdkInitOrg2
     * */
    public static final String org2KeyFolderPath = DIR+"peerOrganizations\\org2.example.com\\users\\Admin@org2.example.com\\msp\\keystore";
    public static final String org2CertFoldePath =DIR+"peerOrganizations\\org2.example.com\\users\\Admin@org2.example.com\\msp\\admincerts";
    public static final String org2CertFileName ="Admin@org2.example.com-cert.pem";
    public static final String org2TlsPeerFilePath = DIR+"peerOrganizations\\org2.example.com\\tlsca\\tlsca.org2.example.com-cert.pem";

    /**
     * Fabric升级需要的文件
     * */
    public static final String fabricUpdateFIle = "src/main/resources/file/fabric/config/chaincodeendorsementpolicy.yaml";

    /**
     * 链码存放地址
     * */
    public static final String chaincodeLocation = "src/main/resources/file/chaincode";


    /**
     * 档案存放路径
     * */
    public static final String recordFilePath = "src/main/resources/file/recordFile/";

}
